package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.nursing.domain.NursingTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.NursingTaskCancelDto;
import com.zzyl.nursing.dto.NursingTaskDoDto;
import com.zzyl.nursing.dto.NursingTaskUpdateTimeDto;
import com.zzyl.nursing.vo.NursingTaskVo;

/**
 * 护理任务Service接口
 *
 * @author alexis
 * @date 2024-11-17
 */
public interface INursingTaskService extends IService<NursingTask> {
    /**
     * 查询护理任务列表
     *
     * @param nursingTask 护理任务
     * @return 护理任务集合
     */
    List<NursingTask> selectNursingTaskList(NursingTask nursingTask);

    /**
     * 取消护理任务
     */
    int cancel(NursingTaskCancelDto nursingTaskCancelDto);

    /**
     * 执行护理任务
     */
    int doTask(NursingTaskDoDto nursingTaskDoDto);

    int updateTime(NursingTaskUpdateTimeDto nursingTaskUpdateTimeDto);

    /**
     * 查询护理任务
     *
     * @param id 护理任务主键
     * @return 护理任务
     */
    NursingTaskVo selectNursingTaskById(Long id);
}
